package com.hoshiicloud.user.service.rbac;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.UsersLoginVO;
import com.hoshiicloud.auth.vo.TokenUsersVO;
import com.hoshiicloud.user.entity.company.ComUsers;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * <p>
 * 公司用户基本信息表 服务类
 * </p>
 *
 * @author WGJ
 * @since 2019-04-24
 */
public interface IComUsersService extends IService<ComUsers> {
    ComUsers getById(Long id);

    @Override
    boolean updateById(ComUsers entity);


    UsersLoginVO getComUserLoginDetail(String phone);

    /**
     * @param entity
     * @return long
     * @description: 新增公司用户基本信息
     */
    long saveComUsers(ComUsers entity);

    TokenUsersVO getCompanyUserLoginDetail(Map<String,String> map);
}
